package com.jackrain.nea.ad.web.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.fastjson.JSONObject;
import com.jackrain.nea.util.ValueHolder;
import com.jackrain.nea.web.BigPipeCmd;
import com.jackrain.nea.web.face.User;
import com.jackrain.nea.web.query.DefaultWebEvent;
import com.jackrain.nea.web.service.BigPipeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author lzm
 * @date 2017-12-15
 */
@Slf4j
@Component("BigPipeCmdImpl-ad")
@Service(protocol="dubbo", validation="true", version="1", group= "ad")
public class BigPipeCmdImpl implements BigPipeCmd {
    @Autowired
    private BigPipeService service;

    @Override
    public ValueHolder batchExecute(User user, JSONObject requests, DefaultWebEvent event, String action) {
        return service.batchExecute(user, requests, event, action);
    }
}
